package com.imooc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

// @EnableRedisHttpSession //开启基于redis的HTTP的Session
@EnableScheduling //开启定时任务
// @SpringBootApplication(exclude = {SecurityAutoConfiguration.class}) //排除security的那个登录框页面
//因为我们引入了一个新包,这个包不会被默认扫描,第一个com.imooc会被自动扫描,我们加上组件扫描注解并添加扫描包数组
@ComponentScan(basePackages = {"com.imooc", "org.n3r.idworker"})
//扫描mybatis通用mapper所在包
@MapperScan(basePackages = "com.imooc.mapper")
@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}